package com.shark.open.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shark.model.erp.StationModel;
import com.shark.open.config.ReqContext;
import com.shark.open.mapper.StationMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class StationService extends ServiceImpl<StationMapper, StationModel> {

    public List<StationModel> listStation() {
        //checkSign();
        ReqContext.AccessContext context = ReqContext.getContext();
        return this.lambdaQuery().eq(StationModel::getGroupId, context.getGroupId()).orderByAsc(StationModel::getStationId).list();
    }

}